package com.xjtu.project.aichat;

import dev.langchain4j.agent.tool.P;
import dev.langchain4j.agent.tool.Tool;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public class SalesTool {
    @Autowired
    private SaleService saleService;
    @Tool("查询数据库内销量top10的商品信息")
    public List<SalesVO> getSaleTop10(@P("输入的查询Top10商品信息") SalesDTO salesDTO){
        return saleService.getSaleTop10(salesDTO);
    }
}
